package lesson.c4.sample;

public class Group {
	private Student[] _students;
	
	public Group(Student[] students){
		_students = students;
	}
	
	public Student[] getStudents(){
		return _students;
	}
	
	public Student getStudentByName(String name){
		for(Student st: _students){
			if(st.name.equals(name)){
				return st;
			}
		}
		return null;
	}
}
